#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#

class Foo(object):
    def __init__(self, name):
        self.__name = name

    @property
    def name(self):
        print(self.__name)

    @name.setter
    def name(self, name):
        self.__name = name
        print("修改成功 {}".format(self.__name))

    @name.deleter
    def name(self):
        del self.__name
        print("删除成功 ")

f1=Foo("大黑熊")
f1.name = "大白熊"
del f1.name
